﻿CREATE TABLE [dbo].[Web_ListTemplate] (
    [WebID]            UNIQUEIDENTIFIER NOT NULL,
    [ListTemplateName] VARCHAR (200)    NOT NULL,
    [FeatureID]        UNIQUEIDENTIFIER NOT NULL,
    CONSTRAINT [PK_Web_ListTemplate] PRIMARY KEY CLUSTERED ([WebID] ASC, [ListTemplateName] ASC, [FeatureID] ASC),
    CONSTRAINT [FK_Web_ListTemplate_ListTemplate1] FOREIGN KEY ([ListTemplateName], [FeatureID]) REFERENCES [dbo].[ListTemplate] ([ListTemplateName], [FeatureID]),
    CONSTRAINT [FK_Web_ListTemplate_Web] FOREIGN KEY ([WebID]) REFERENCES [dbo].[Web] ([WebID])
);

